<?php
  include("include/session.php");
  include("include/db.php");
  include("include/paging.php"); 
  
  if(isset($_REQUEST['del_category']) && intval($_REQUEST['del_category'])){
 	
	mysql_query("UPDATE category SET active = 'N' WHERE category_id = '".intval($_REQUEST['cat_id'])."'");
	header("location:categories.php");
	exit();
  
  }
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/c_energy.css" rel="stylesheet" type="text/css" />
<title><?=TITLE_WEBSITE?></title>
</head>
<script type="text/javascript" language="javascript">
function approve(){
	document.sitefrm.submit();
}
</script>
<body>
<table width="990" align="center" cellpadding="0" cellspacing="0">

    <tr>
        <td colspan="7"  align="left" valign="top" ><? require("header.php");?>       </td>
      </tr>  
	  <tr>
    <td align="center"></td>
  </tr>



        <tr>
        <td width="28%" align="right" valign="top"><a href="rss.php"></a></td>
        <td width="23%" align="left" valign="top"><a href="rss.php"></a></td>
        <td width="22%" align="right" valign="top" style="padding-top:25px">&nbsp;</td>
        <td width="2%" align="left" valign="top">&nbsp;</td>
        <td width="0%" align="left" valign="top">&nbsp;</td>
        <td width="17%" align="left" valign="top"><a href="channel.php"></a></td>
        <td width="8%" align="center" valign="top">&nbsp;</td>
      </tr>
	  
  <tr>
    <td colspan="8" align="center" valign="top">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr bgcolor="#FAFAFA">
        <td align="left" valign="top" >
		
		  <table width="74%" cellspacing="0" cellpadding="0">
		    <tr>
		      <td height="161" rowspan="2" align="left" valign="top" style="padding-left:15px; padding-top:26px" >
		          <? require("left.php");?>              </td>
		
				<td height="24" valign="top">&nbsp;</td>
            </tr>
		    <tr>
		      <td valign="top" style="padding-left:15px"><table width="638" cellpadding="0"  cellspacing="0" id="signInTbl">
               		<tr  style="height:180px">
                    	<td style="border:6px solid #373737" align="center">
                        	<a href="change_password.php" >
                        		<img src="images/lock-icon.png" width="100" border="0"  />
                            </a>
                        </td>
                         <td >&nbsp;</td>
                        <td style="border:6px solid #373737" align="center">
                        	<a href="user.php" >
                        		<img src="images/student.png" border="0" width="130"  />
                        	</a>
                        </td>
                       
                        
                        	
                        <td >&nbsp;</td>
                        <td style="border:6px solid #373737" align="center">
                         	<a href="courses.php" >
                        		<img src="images/courses.png" width="130" border="0"  />
                        	</a>
                        </td>
                      
                    </tr>
                    <tr>
                    	<td colspan="5" >&nbsp;</td>
                    </tr>
              		<tr style="height:180px;margin-top:20px; ">
                    	<td style="border:6px solid #373737; margin-top:20px;"  align="center">
                        	<a href="courses_class.php" >
                        			<img src="images/classroom.jpg" width="120" border="0" />
                        		</a>                        </td>
                        <td >&nbsp;</td>
                        <td style="border:6px solid #373737; margin-top:20px;" align="center">
                        		
                            <a href="pages.php" >
                        		<img src="images/pages.png" width="100" border="0"  />
                        	</a>
						</td>
                        <td >&nbsp;</td>
                        <td style="border:6px solid #373737; margin-top:20px;"  align="center">
                        	<a href="addRating.php" >
                        			<img src="../images/rateing.png" width="120" border="0" />
                        		</a>                        </td>
                     
                     
                    </tr>
                     <tr>
                    	<td colspan="5" >&nbsp;</td>
                    </tr>
              	   <td style="border:6px solid #373737;  margin-top:20px;"  align="center">
                        	  <a href="update_main_banner.php" >
                        		<img src="../images/banner_design.png" border="0"  />
                        	</a>
                            
                            	</td>
                        
                    	<td colspan="5" >&nbsp;</td>
                  
                    
                    </tr>
                    
              </table></td>
		      </tr>
	        </table>			</td>
        </tr>
      <tr bgcolor="#FAFAFA">
        
        <td colspan="2">&nbsp;</td>
      </tr>
    </table>	</td>
  </tr>
</table>
</center>
</body>
</html>

